<?php
/**
 * Created by PhpStorm.
 * User: lyang
 * Date: 2016/11/19
 * Time: 14:34
 */
date_default_timezone_set("Asia/Shanghai");
define("ROOT",__DIR__);
/**
 * 解析html
 */
require "./lib/simple_html_dom.php";
/**
 * 自动加载类
 */
spl_autoload_register("craw_autoload");


function craw_autoload($name){
    $name = str_replace("\\","/",$name);
    $file = ROOT."/".$name.'.php';
    if(file_exists($file)  ){
        require $file;
    }
}

